package operation.chef;

import zy.Dish;
import zy.Warehouse;

import java.util.Scanner;

/*
 *@Student 张策
 */
public class chef1 implements Ioperation {//后厨管理模块
    Scanner scanner = new Scanner(System.in);
    @Override
    public void work(Warehouse warehouse) {
        while (true) {
            System.out.println("---------仓库模块-------");
            System.out.println("1:查看库存");
            System.out.println("2:炒菜");
            System.out.println("3:扔菜");
            System.out.println("4:返回上一级");
            System.out.println();
            System.out.println("请输入您的选择:");
            int choice = scanner.nextInt();
            switch (choice) {
                case 1:
                    warehouse.show();
                    break;
                case 2:
                    warehouse.cookDish();
                    break;
                case 3:
                    warehouse.throwDish();
                    break;
                case 4:
                    return;
            }
        }
    }
}
